<?php

namespace app\constant;


class CodeConst
{

    const SUCCESS = 201;
    const SUCCESS_MSG = '操作成功';


    const COMMON_ERROR = 400002;
    const COMMON_ERROR_MSG = '操作失败';


    const AUTH_ERROR = 400003;
    const AUTH_ERROR_MSG = '无访问权限';


    const NOT_FOUND_ERROR = 404;
    const NOT_FOUND_ERROR_MSG = '访问不存在';

    const METHOD_NOT_ALLOWED_ERROR = 405;
    const METHOD_NOT_ALLOWED_ERROR_MSG = '方法不允许访问';

    const TOKEN_ERROR = 400006;
    const TOKEN_ERROR_MSG = 'token异常或无效';


    const PARAMETER_ERROR = 400007;
    const PARAMETER_ERROR_MSG = '参数异常';


    const INVALID_PARAMETERS_ERROR = 400000;
    const INVALID_PARAMETERS_ERROR_MSG = 'invalid parameters';


    const SERVER_ERROR = 500;
    const SERVER_ERROR_MSG = '服务器错误';
}
